package com.sxhalo.fsms.service.impl;

import com.sxhalo.fsms.domain. LogOperation;
import com.sxhalo.fsms.mapper. LogOperationMapper;
import com.sxhalo.fsms.service.ILogOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogOperationServiceImpl implements ILogOperationService {

	@Autowired
	private  LogOperationMapper mapper;
	
	@Override
	public Integer insertSelective( LogOperation record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective( LogOperation record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		return mapper.deleteByPrimaryKey(Long.parseLong(key.toString()));
	}

	@Override
	public  LogOperation selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey(Long.parseLong(key.toString()));
	}

	@Override
	public List< LogOperation> findWhereList(String where, String order) {
		return mapper.findWhereList(where, order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List< LogOperation> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start, length, where, order);
	}

	@Override
	public int deleteByWhere(String where) {
		return mapper.deleteByWhere(where);
	}

}
